import request from '@/utils/request'

// 查询费用报销列表
export function listReimbursement(query) {
  return request({
    url: '/bills/reimbursement/list',
    method: 'get',
    params: query
  })
}
export function billCount(query) {
  return request({
    url: '/bills/reimbursement/billCount',
    method: 'get',
    params: query
  })
}
export function billCount1(query) {
  return request({
    url: '/bills/reimbursement/billCount1',
    method: 'get',
    params: query
  })
}
// 查询费用报销详细
export function getReimbursement(id) {
  return request({
    url: '/bills/reimbursement/' + id,
    method: 'get'
  })
}

// 新增费用报销
export function addReimbursement(data) {
  return request({
    url: '/bills/reimbursement',
    method: 'post',
    data: data
  })
}

// 修改费用报销
export function updateReimbursement(data) {
  return request({
    url: '/bills/reimbursement',
    method: 'put',
    data: data
  })
}

// 删除费用报销
export function delReimbursement(id) {
  return request({
    url: '/bills/reimbursement/' + id,
    method: 'delete'
  })
}

// 导出费用报销
export function exportReimbursement(query) {
  return request({
    url: '/bills/reimbursement/export',
    method: 'get',
    params: query
  })
}
